import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;


public class Test {
	public static void main(String[] args) {
		try {
			File file = new File("/Users/houtouke/Desktop/100测试.txt");// Text文件
			BufferedReader br = new BufferedReader(new FileReader(file));// 构造一个BufferedReader类来读取文件
			String s = null;

			while ((s = br.readLine()) != null) {// 使用readLine方法，一次读一行
				System.out.println(s);
				String[] arr=s.split("----");
				HttpRequest.sendGet("http://192.168.1.106/Home/Api/insert", "account="+arr[0]+"&password="+arr[1]);
				try {
					Thread.sleep(500);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				
			
			}
			br.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	
}
